package com.chinasoft.Test.controller.test;

import com.chinasoft.Test.controller.pojo.user;
import com.sun.corba.se.impl.protocol.FullServantCacheLocalCRDImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@ConfigurationProperties(prefix = "person")
public class Controller {
      private final Logger log= LoggerFactory.getLogger(Controller.class);
//    private String username;
//    private int password;
//    @Value("${food}")
//    private String food;
    @Autowired
    private user u;

    @RequestMapping("index")
    public String index(){
//        log.info("username"+username);
//        log.info("food:"+food);
        log.info("username:"+u.getUsername());
        System.out.println("..................");
        System.out.println("..................");
        System.out.println("..................");
        System.out.println("..................");
        System.out.println("..................");
        System.out.println("..................");
        System.out.println("这是master 上提交的新代码");
        System.out.println("test1");
        return "hello world+++"+u.getUsername();
    }
//    public String getFood() {
//        return food;
//    }
//
//    public void setFood(String food) {
//        this.food = food;
//    }
//    public String getUsername() {
//        return username;
//    }
//
//    public void setUsername(String username) {
//        this.username = username;
//    }
//
//    public int getPassword() {
//        return password;
//    }
//
//    public void setPassword(int password) {
//        this.password = password;
//    }
}
